package com.itheima.开启多线程.mythread;

/**
 * @Author 王加鑫
 * @Date 2021/5/22 9:39
 * @Version 1.0
 */
public class Demo01 {

    public static void main(String[] args) {
        MyThread thread = new MyThread();

        //开启线程
        thread.setName("线程一");
        thread.start();

        MyThread thread2 = new MyThread();

        //开启线程
        thread2.setName("线程二");
        thread2.start();

    }
}
